package com.sjz.bookmark.listener;

import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.event.EditorFactoryEvent;
import com.intellij.openapi.editor.event.EditorFactoryListener;
import com.intellij.openapi.project.Project;
import com.sjz.bookmark.util.SjzUtils;
import org.jetbrains.annotations.NotNull;

public class MyEditorFactoryListener implements EditorFactoryListener {

    @Override
    public void editorCreated(@NotNull EditorFactoryEvent event) {
        Editor editor = event.getEditor();
        Project project = editor.getProject();
        if (project != null) {
           try {
           }catch (Exception e){
               SjzUtils.logError(project, "监听打开文件事件2",e);
           }
           SjzUtils.logInfo("监听打开文件事件",false);
        }
    }

}